Skip to content

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Mar 30, 2022

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ @​testing-library/user-event (^13.1.8 → ^14.0.0) · Repo · Changelog

Release Notes

14.0.0

14.0.0 (2022-03-29)

⚠ BREAKING CHANGES

  • APIs always return a Promise.
  • pointer: skipPointerEvents has been removed.
    Use pointerEventsCheck: PointerEventsCheckLevel.Never instead.
  • upload: init parameter has been removed from userEvent.upload.
  • The userEvent.paste API has new parameters.
  • {ctrl}, {del}, {esc} no longer describe a key. Use {Control}, {Delete}, {Escape} instead.
  • {alt}, {ctrl}, {meta}, {shift} no longer imply not releasing the key. Use {Alt>}, {Control>}, {Meta>}, {Shift>} instead.
  • init parameter has been removed from these APIs:
    • userEvent.click
    • userEvent.dblClick
    • userEvent.tripleClick
    • userEvent.hover
    • userEvent.unhover
    • userEvent.selectOptions
    • userEvent.deselectOptions
  • userEvent.upload no longer supports clickInit
    as part of its init parameter.
  • Behavior for special key descriptor {selectall} has been removed.
  • Support for keyCode property on keyboard events has been removed.
  • An error is thrown when calling userEvent.clear on an element which is not editable.
  • An error is thrown when event handlers prevent userEvent.clear from focussing/selecting content.
  • tab: The focusTrap option has been removed from userEvent.tab().
  • type: userEvent.type does no longer move the cursor
    if used with skipClick=false and without initialSelectionStart.
  • The implementation of pointer related APIs was replaced.
    This might break tests relying on unintended side-effects of the previous implementation.
  • Support for node 10 was removed as it reached its end-of-life.

Features

Bug Fixes

  • check for inherited :disabled (#872) (1a00fdf)
  • clipboard: prevent default behavior on copy/cut (#866) (5423094)
  • clipboard: prevent default behavior on paste (#862) (d3d71ac)
  • create MouseEvents per createEvent (#781) (da5b5b7)
  • export bundled ESM (#816) (1a5e2a7)
  • export types and commonjs bundle (#821) (4f56856)
  • keyboard: parse escaped bracket followed by descriptor (#814) (684451f)
  • keyboard: parse keyboard input without nesting (#793) (fafa677)
  • keyboard: set KeyboardEvent.charCode on keypress (#771) (55e194a)
  • keyboard: submit form with <button/> on [Enter] (#808) (eca157a)
  • log correct docs link for invalid key descriptors (#881) (28d6604)
  • maintain cursor position on controlled component (#765) (8f203cc)
  • pointer: blur activeElement on click outside of focusable (#834) (d64167c)
  • pointer: consider click context (#850) (ca4482a)
  • pointer: fire pointer events on disabled elements (#818) (ef2f4e5)
  • pointer: honor click handler on <label/> (#810) (2c5d9f1)
  • pointer: trigger contextmenu on mousedown (#811) (e1c4cad)
  • prepare document in setup (#753) (65be675)
  • remove deprecated keyboard features (#780) (45dc39a)
  • remove legacy modifier implementations (#783) (caea162)
  • replace pointer implementations (#754) (c04f79b)
  • reset UI selection on setter (#770) (2733d10)
  • tab: order tabIndex>0 before tabIndex=0 (#809) (1bc5945)
  • tab: remove focusTrap option (#772) (a0412c0)
  • tab: skip elements with visibility:hidden (#799) (a747b0a)
  • upload: fix order of events (#847) (214fd03)

Miscellaneous Chores

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 75 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Mar 30, 2022
@depfu
Copy link
Contributor Author

depfu bot commented Apr 2, 2022

Closed in favor of #59.

@depfu depfu bot closed this Apr 2, 2022
@depfu depfu bot deleted the depfu/update/ApplicationCodeMyprojectfrontend/npm/@testing-library/user-event-14.0.0 branch April 2, 2022 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant